<div class="actions_block"
  xmlns:nxu="http://nuxeo.org/nxweb/util"
  xmlns:f="http://java.sun.com/jsf/core"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:c="http://java.sun.com/jstl/core">

<div class="lockFile_block" id='lock_unlock_button'>
  <c:if test="#{!empty currentDocumentLockDetails}">
    <h:outputText value="#{messages['label.summary.locked.intro']} "/>
    <h:outputText class="summary_locked" value="#{messages['label.summary.locked']}"/>
    <c:if test="#{currentDocumentCanBeUnlocked}">
      <h:outputText value=" | " />
      <h:commandLink value="#{messages['command.unlock']}"
        action="#{lockActions.unlockCurrentDocument}"
        immediate="true" />
    </c:if>
    <div class="lockDetail">
      <h:outputText
        value="#{messages['label.summary.by']} #{nxu:userFullName(currentDocumentLockDetails['document.locker'])}, "
        title="#{currentDocumentLockDetails['document.locker']}"
        styleClass="tipsyShow" />
      <h:outputText value="#{messages['label.summary.the']} "/>
        <h:outputText value="#{currentDocumentLockDetails['document.lock.created'].time}">
          <f:convertDateTime pattern="#{nxu:basicDateAndTimeFormatter()}" timeZone="#{timeZone}" />
        </h:outputText>
    </div>
  </c:if>

  <c:if test="#{empty currentDocumentLockDetails}">
    <h:outputText value="#{messages['label.summary.locked.intro']} "/>
    <h:outputText class="summary_unlocked" value="#{messages['label.summary.unlocked']} "/>
    <c:if test="#{currentDocumentCanBeLocked}" >
      <h:outputText value=" | " />
      <h:commandLink value="#{messages['command.lock']}"
        action="#{lockActions.lockCurrentDocument}"
        immediate="true" />
    </c:if>
  </c:if>
</div>

<div class="restoreFile_block">
  <c:if test="#{deleteActions.trashManagementEnabled and deleteActions.canRestoreCurrentDoc}">
    <h:outputText value="#{messages['label.summary.restoreDeletedDocument']}" />
    <h:outputText value=" | " />
    <h:commandLink value="#{messages['command.undeleteDocs']}"
      action="#{deleteActions.restoreCurrentDocument}"
      immediate="true" />
  </c:if>
</div>

</div>